//
//  SortModel.h
//  project
//
//  Created by 黄建华 on 2019/1/17.
//  Copyright © 2019年 黄建华. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface SortModel : NSObject

@property (nonatomic, strong) NSString *dateString;                // 日期
@property (nonatomic, strong) NSString *user_id;                   //  用户ID
@property (nonatomic, strong) NSArray *stepSort;
@property (nonatomic, strong) NSArray *sleepDurationSArray;
@property (nonatomic, strong) NSArray *sleepStartArray;

+ (SortModel *)initWithDate:(NSDate *)date;
+ (SortModel *)getSortModelFromDBWithDayString:(NSString *)string;

+ (void)updateModelWithDic:(id)object withDateString:(NSString *)date;
+ (void)updateModelWithSleepDurationDic:(id)object withDateString:(NSString *)date;
+ (void)updateModelWithSleepStartDic:(id)object withDateString:(NSString *)date;

@end

NS_ASSUME_NONNULL_END
